package com.sz.ac.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户投资表
 * </p>
 *
 * @author ruichar
 * @since 2018-03-24
 */
@TableName("ac_invest")
public class AcInvest extends Model<AcInvest> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 投资人手机号
     */
	private String phone;
    /**
     * 投资金额
     */
	private BigDecimal amount;
    /**
     * 战队id
     */
	@TableField("grp_id")
	private Integer grpId;
	/**
	 * 邀请手机号
	 */
	@TableField("invite_phone")
	private Integer invitePhone;
	/**
	 * 投资贡献的球数
	 */
	@TableField("invest_ball")
	private Integer investBall;
	/**
	 * 最后一笔投资时间
	 */
	@TableField("invest_time")
	private Date investTime;
	/**
	 * 头像Id
	 */
	@TableField("pic_index")
	private Integer picIndex;
    /**
     * 时间戳
     */
	private Date tsp;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getGrpId() {
		return grpId;
	}

	public void setGrpId(Integer grpId) {
		this.grpId = grpId;
	}

	public Integer getInvitePhone() {
		return invitePhone;
	}

	public void setInvitePhone(Integer invitePhone) {
		this.invitePhone = invitePhone;
	}

	public Date getInvestTime() {
		return investTime;
	}

	public void setInvestTime(Date investTime) {
		this.investTime = investTime;
	}

	public Integer getInvestBall() {
		return investBall;
	}

	public void setInvestBall(Integer investBall) {
		this.investBall = investBall;
	}

	public Date getTsp() {
		return tsp;
	}

	public void setTsp(Date tsp) {
		this.tsp = tsp;
	}

	public Integer getPicIndex() {
		return picIndex;
	}

	public void setPicIndex(Integer picIndex) {
		this.picIndex = picIndex;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
